home *** CD-ROM | disk | FTP | other *** search
/ C!T ROM 3 / ct-rom iiib.zip / ct-rom iiib / WINDOWS / DIVERSEN / WINE02BX / CALENDAR.ELC < prev    next >
Text File  |  1993-03-28  |  86KB  |  1,027 lines

  1. ;;; compiled by jwz@thalidomide on Thu Jul  2 14:34:22 1992
  2. ;;; from file /u/jwz/emacs19/lisp/calendar/calendar.el
  3. ;;; emacs version 19.2.1 Lucid.
  4. ;;; bytecomp version 2.07; 17-jun-92.
  5. ;;; optimization is on.
  6. ;;; this file uses opcodes which do not exist in Emacs18.
  7.  
  8. (if (and (boundp 'emacs-version)
  9.      (or (and (boundp 'epoch::version) epoch::version)
  10.          (string-lessp emacs-version "19")))
  11.     (error "This file was compiled for Emacs19."))
  12.  
  13. (byte-code "└┬├!ç" ["Version 4, released November 20, 1990" calendar-version provide calendar] 2)
  14. (defvar view-diary-entries-initially nil "\
  15. *If T, the diary entries for the current date will be displayed on entry.
  16. The diary is displayed in another window when the calendar is first displayed,
  17. if the current date is visible.  The number of days of diary entries displayed
  18. is governed by the variable `number-of-diary-entries'.")
  19. (defvar number-of-diary-entries 1 "\
  20. *Specifies how many days of diary entries are to be displayed initially.
  21. This variable affects the diary display when the command M-x diary is used,
  22. or if the value of the variable `view-diary-entries-initially' is t.  For
  23. example, if the default value 1 is used, then only the current day's diary
  24. entries will be displayed.  If the value 2 is used, then both the current
  25. day's and the next day's entries will be displayed.  The value can also be
  26. a vector such as [0 2 2 2 2 4 1]; this value will cause no diary entries to
  27. be displayed on Sunday, the current date's and the next day's diary entries
  28. to be displayed Monday through Thursday, Friday through Monday's entries to
  29. be displayed on Friday, and only Saturday's entries to be displayed on
  30. Saturday.  This variable does not affect the diary display with the `d'
  31. command from the calendar; in that case, the prefix argument controls the
  32. number of days of diary entries displayed.")
  33. (defvar mark-diary-entries-in-calendar nil "\
  34. *If t, dates with diary entries will be marked in the calendar window.
  35. The marking symbol is specified by the variable `diary-entry-marker'.")
  36. (defvar diary-entry-marker "+" "\
  37. *The symbol used to mark dates that have diary entries.")
  38. (defvar view-calendar-holidays-initially nil "\
  39. *If t, the holidays for the current three month period will be displayed
  40. on entry.  The holidays are displayed in another window when the calendar is
  41. first displayed.")
  42. (defvar mark-holidays-in-calendar nil "\
  43. *If t, dates of holidays will be marked in the calendar window.
  44. The marking symbol is specified by the variable `calendar-holiday-marker'.")
  45. (defvar calendar-holiday-marker "*" "\
  46. *The symbol used to mark notable dates in the calendar.")
  47. (defvar all-hebrew-calendar-holidays nil "\
  48. *If nil, the holidays from the Hebrew calendar that are shown will
  49. include only those days of such major interest as to appear on secular
  50. calendars.  If t, the holidays shown in the calendar will include all
  51. special days that would be shown on a complete Hebrew calendar.")
  52. (defvar all-christian-calendar-holidays nil "\
  53. *If nil, the holidays from the Christian calendar that are shown will
  54. include only those days of such major interest as to appear on secular
  55. calendars.  If t, the holidays shown in the calendar will include all
  56. special days that would be shown on a complete Christian calendar.")
  57. (defvar all-islamic-calendar-holidays nil "\
  58. *If nil, the holidays from the Islamic calendar that are shown will
  59. include only those days of such major interest as to appear on secular
  60. calendars.  If t, the holidays shown in the calendar will include all
  61. special days that would be shown on a complete Islamic calendar.")
  62. (defvar initial-calendar-window-hook nil "\
  63. *List of functions to be called when the calendar window is first opened.
  64. The functions invoked are called after the calendar window is opened, but
  65. once opened is never called again.  Leaving the calendar with the `q' command
  66. and reentering it will cause these functions to be called again.")
  67. (defvar today-visible-calendar-hook nil "\
  68. *List of functions called whenever the current date is visible.
  69. This can be used, for example, to replace today's date with asterisks; a
  70. function `calendar-star-date' is included for this purpose:
  71.     (setq today-visible-calendar-hook 'calendar-star-date)
  72. It could also be used to mark the current date with `='; a function is also
  73. provided for this:
  74.     (setq today-visible-calendar-hook 'calendar-mark-today)
  75.  
  76. The corresponding variable `today-invisible-calendar-hook' is the list of
  77. functions called when the calendar function was called when the current
  78. date is not visible in the window.
  79.  
  80. Other than the use of the provided functions, the changing of any
  81. characters in the calendar buffer by the hooks may cause the failure of the
  82. functions that move by days and weeks.")
  83. (defvar today-invisible-calendar-hook nil "\
  84. *List of functions called whenever the current date is not visible.
  85.  
  86. The corresponding variable `today-visible-calendar-hook' is the list of
  87. functions called when the calendar function was called when the current
  88. date is visible in the window.
  89.  
  90. Other than the use of the provided functions, the changing of any
  91. characters in the calendar buffer by the hooks may cause the failure of the
  92. functions that move by days and weeks.")
  93. (defvar diary-file "~/diary" "\
  94. *Name of the file in which one's personal diary of dates is kept.
  95.  
  96. The file's entries are lines in any of the forms
  97.  
  98.             MONTH/DAY
  99.             MONTH/DAY/YEAR
  100.             MONTHNAME DAY
  101.             MONTHNAME DAY, YEAR
  102.             DAYNAME
  103.  
  104. at the beginning of the line; the remainder of the line is the diary entry
  105. string for that date.  MONTH and DAY are one or two digit numbers, YEAR is
  106. a number and may be written in full or abbreviated to the final two digits.
  107. If the date does not contain a year, it is generic and applies to any year.
  108. DAYNAME entries apply to any date on which is on that day of the week.
  109. MONTHNAME and DAYNAME can be spelled in full, abbreviated to three
  110. characters (with or without a period), capitalized or not.  Any of DAY,
  111. MONTH, or MONTHNAME, YEAR can be `*' which matches any day, month, or year,
  112. respectively.
  113.  
  114. The European style (in which the day precedes the month) can be used
  115. instead, if you execute `european-calendar' when in the calendar, or set
  116. `european-calendar-style' to t in your .emacs file.  The European forms are
  117.  
  118.             DAY/MONTH
  119.             DAY/MONTH/YEAR
  120.             DAY MONTHNAME
  121.             DAY MONTHNAME YEAR
  122.             DAYNAME
  123.  
  124. To revert to the default American style from the European style, execute
  125. `american-calendar' in the calendar.
  126.  
  127. A diary entry can be preceded by a diary-nonmarking-symbol (ordinarily `&')
  128. to make that entry nonmarking--that is, it will not be marked on dates in
  129. the calendar window but will appear in a diary window.
  130.  
  131. Multiline diary entries are made by indenting lines after the first with
  132. either a TAB or one or more spaces.
  133.  
  134. Lines not in one the above formats are ignored.  Here are some sample diary
  135. entries (in the default American style):
  136.  
  137.      12/22/1988 Twentieth wedding anniversary!!
  138.      &1/1. Happy New Year!
  139.      10/22 Ruth's birthday.
  140.      21: Payday
  141.      Tuesday--weekly meeting with grad students at 10am
  142.               Supowit, Shen, Bitner, and Kapoor to attend.
  143.      1/13/89 Friday the thirteenth!!
  144.      &thu 4pm squash game with Lloyd.
  145.      mar 16 Dad's birthday
  146.      April 15, 1989 Income tax due.
  147.      &* 15 time cards due.
  148.  
  149. If the first line of a diary entry consists only of the date or day name with
  150. no trailing blanks or punctuation, then that line will not be displayed in the
  151. diary window; only the continuation lines will be shown.  For example, the
  152. single diary entry
  153.  
  154.      02/11/1989
  155.       Bill Blattner visits Princeton today
  156.       2pm Cognitive Studies Committee meeting
  157.       2:30-5:30 Lizzie at Lawrenceville for `Group Initiative'
  158.       4:00pm Jamie Tappenden
  159.       7:30pm Dinner at George and Ed's for Alan Ryan
  160.       7:30-10:00pm dance at Stewart Country Day School
  161.  
  162. will appear in the diary window without the date line at the beginning.  This
  163. facility allows the diary window to look neater, but can cause confusion if
  164. used with more than one day's entries displayed.
  165.  
  166. Diary entries can be based on Lisp sexps.  For example, the diary entry
  167.  
  168.       %%(diary-block 11 1 1990 11 10 1990) Vacation
  169.  
  170. causes the diary entry \"Vacation\" to appear from November 1 through November
  171. 10, 1990.  Other functions available are `diary-float', `diary-anniversary',
  172. `diary-cyclic', `day-of-year', `iso-date', `commercial-date', `french-date',
  173. `hebrew-date', `islamic-date', `parasha', `omer', and `rosh-hodesh'.  See the
  174. documentation for the function `list-sexp-diary-entries' for more details.
  175.  
  176. Diary entries based on the Hebrew and/or the Islamic calendar are also
  177. possible, but because these are somewhat slow, they are ignored
  178. unless you set the `nongregorian-diary-listing-hook' and the
  179. `nongregorian-diary-marking-hook' appropriately.  See the documentation
  180. for these functions for details.
  181.  
  182. Diary files can contain directives to include the contents of other files; for
  183. details, see the documentation for the variable `list-diary-entries-hook'.")
  184. (defvar diary-nonmarking-symbol "&" "\
  185. *The symbol used to indicate that a diary entry is not to be marked in the
  186. calendar window.")
  187. (defvar hebrew-diary-entry-symbol "H" "\
  188. *The symbol used to indicate that a diary entry is according to the
  189. Hebrew calendar.")
  190. (defvar islamic-diary-entry-symbol "I" "\
  191. *The symbol used to indicate that a diary entry is according to the
  192. Islamic calendar.")
  193. (defvar diary-include-string "#include" "\
  194. *The string used to indicate the inclusion of another file of diary entries
  195. in diary-file.  See the documentation for the function
  196. `include-other-diary-files'.")
  197. (defvar sexp-diary-entry-symbol "%%" "\
  198. *The string used to indicate a sexp diary entry in diary-file.
  199. See the documentation for the function `list-sexp-diary-entries'.")
  200. (defvar abbreviated-calendar-year t "\
  201. *Interpret a two-digit year DD in a diary entry as being either 19DD or
  202. 20DD, as appropriate, for the Gregorian calendar; similarly for the Hebrew and
  203. Islamic calendars.  If this variable is nil, years must be written in full.")
  204. (defvar european-calendar-style nil "\
  205. *Use the European style of dates in the diary and in any displays.  If this
  206. variable is t, a date 1/2/1990 would be interpreted as February 1, 1990.
  207. The accepted European date styles are
  208.  
  209.             DAY/MONTH
  210.             DAY/MONTH/YEAR
  211.             DAY MONTHNAME
  212.             DAY MONTHNAME YEAR
  213.             DAYNAME
  214.  
  215. Names can be capitalized or not, written in full, or abbreviated to three
  216. characters with or without a period.")
  217. (defvar american-date-diary-pattern '((month "/" day "[^/0-9]") (month "/" day "/" year "[^0-9]") (monthname " *" day "[^,0-9]") (monthname " *" day ", *" year "[^0-9]") (dayname "\\W")) "\
  218. *List of pseudo-patterns describing the American patterns of date used.
  219. See the documentation of diary-date-forms for an explanantion.")
  220. (defvar european-date-diary-pattern '((day "/" month "[^/0-9]") (day "/" month "/" year "[^0-9]") (backup day " *" monthname "\\W+\\<[^*0-9]") (day " *" monthname " *" year "[^0-9]") (dayname "\\W")) "\
  221. *List of pseudo-patterns describing the European patterns of date used.
  222. See the documentation of diary-date-forms for an explanantion.")
  223. (defvar diary-date-forms (byte-code "½é    ç\nç" [european-calendar-style european-date-diary-pattern american-date-diary-pattern] 1) "\
  224. *List of pseudo-patterns describing the forms of date used in the diary.
  225. The patterns on the list must be MUTUALLY EXCLUSIVE and must should not match
  226. any portion of the diary entry itself, just the date component.
  227.  
  228. A pseudo-pattern is a list of regular expressions and the keywords `month',
  229. `day', `year', `monthname', and `dayname'.  The keyword `monthname' will
  230. match the name of the month, capitalized or not, or its three-letter
  231. abbreviation, followed by a period or not; it will also match `*'.
  232. Similarly, `dayname' will match the name of the day, capitalized or not, or
  233. its three-letter abbreviation, followed by a period or not.  The keywords
  234. `month', `day', and `year' will match those numerical values, preceded by
  235. arbitrarily many zeros; they will also match `*'.
  236.  
  237. The matching of the diary entries with the date forms is done with the
  238. standard syntax table from Fundamental mode, but with the `*' changed so
  239. that it is a word constituent.
  240.  
  241. If, to be mutually exclusive, a pseudo-pattern must match a portion of the
  242. diary entry itself, the first element of the pattern MUST be `backup'.  This
  243. directive causes the the date recognizer to back up to the beginning of the
  244. current word of the diary entry, so in no case can the pattern match more
  245. than a portion of the first word of the diary entry.")
  246. (defvar european-calendar-display-form '(dayname ", " day " " monthname " " year) "\
  247. *The pseudo-pattern that governs the way a Gregorian date is formatted
  248. in the European style.  See the documentation of calendar-date-display-forms
  249. for an explanantion.")
  250. (defvar american-calendar-display-form '(dayname ", " monthname " " day ", " year) "\
  251. *The pseudo-pattern that governs the way a Gregorian date is formatted
  252. in the American style.  See the documentation of calendar-date-display-forms
  253. for an explanantion.")
  254. (defvar calendar-date-display-form (byte-code "½é    ç\nç" [european-calendar-style european-calendar-display-form american-calendar-display-form] 1) "\
  255. *The pseudo-pattern that governs the way a Gregorian date is formatted
  256. as a string by the function `calendar-date-string'.  A pseudo-pattern is a
  257. list of expressions that can involve the keywords `month', `day', and
  258. `year', all numbers in string form, and `monthname' and `dayname', both
  259. alphabetic strings.  For example, the ISO standard would use the pseudo-
  260. pattern
  261.  
  262.        '(year \"-\" month \"-\" day)
  263.  
  264. while a typical American form would be
  265.  
  266.        '(month \"/\" day \"/\" (substring year -2))
  267.  
  268. and
  269.  
  270.        '((format \"%9s, %9s %2s, %4s\" dayname monthname day year))
  271.  
  272. would give the usual American style in fixed-length fields.
  273.  
  274. See the documentation of the function `calendar-date-string'.")
  275. (fset 'european-calendar #[nil "└\n ╞ ç" [t european-calendar-style european-calendar-display-form calendar-date-display-form european-date-diary-pattern diary-date-forms update-calendar-mode-line] 1 "\
  276. Set the interpretation and display of dates to the European style." nil])
  277. (fset 'american-calendar #[nil "└\n ╞ ç" [nil european-calendar-style american-calendar-display-form calendar-date-display-form american-date-diary-pattern diary-date-forms update-calendar-mode-line] 1 "\
  278. Set the interpretation and display of dates to the American style." nil])
  279. (defvar print-diary-entries-hook '(add-diary-heading lpr-buffer (lambda nil (kill-buffer temp-buffer))) "\
  280. *List of functions to be called after a temporary buffer is prepared
  281. with the diary entries currently visible in the diary buffer.  The default
  282. value adds a heading (formed from the information in the mode line of the
  283. diary buffer), does the printing, and kills the buffer.  Other uses might
  284. include, for example, rearranging the lines into order by day and time,
  285. saving the buffer instead of deleting it, or changing the function used to
  286. do the printing.")
  287. (defvar list-diary-entries-hook nil "\
  288. *List of functions to be called after the diary file is culled for
  289. relevant entries. It is to be used for diary entries that are not found in
  290. the diary file.
  291.  
  292. A function `include-other-diary-files' is provided for use as the value of
  293. this hook.  This function enables you to use shared diary files together
  294. with your own.  The files included are specified in the diary-file by lines
  295. of the form
  296.  
  297.         #include \"filename\"
  298.  
  299. This is recursive; that is, #include directives in files thus included are
  300. obeyed.  You can change the \"#include\" to some other string by changing
  301. the variable `diary-include-string'.  When you use `include-other-diary-files'
  302. as part of the list-diary-entries-hook, you will probably also want to use the
  303. function `mark-included-diary-files' as part of the mark-diary-entries-hook.
  304.  
  305. For example, you could use
  306.  
  307.      (setq list-diary-entries-hook
  308.            '(include-other-diary-files
  309.              (lambda nil
  310.                      (setq diary-entries-list
  311.                            (sort diary-entries-list 'diary-entry-compare)))))
  312.      (setq diary-display-hook 'fancy-diary-display)
  313.  
  314. in your .emacs file to cause the fancy diary buffer to be displayed with
  315. diary entries from various included files, each day's entries sorted into
  316. lexicographic order.")
  317. (defvar diary-display-hook 'simple-diary-display "\
  318. *List of functions that handle the display of the diary.
  319.  
  320. Ordinarily, this just displays the diary buffer (with holidays indicated in
  321. the mode line), if there are any relevant entries.  At the time these
  322. functions are called, the variable `diary-entries-list' is a list, in order
  323. by date, of all relevant diary entries in the form of ((MONTH DAY YEAR)
  324. STRING), where string is the diary entry for the given date.  This can be
  325. used, for example, to handle appointment notification, prepare a different
  326. buffer for display (perhaps combined with holidays), or produce hard copy
  327. output.
  328.  
  329. A function `fancy-diary-display' is provided as an alternative
  330. choice for this hook; this function prepares a special noneditable diary
  331. buffer with the relevant diary entries that has neat day-by-day arrangement
  332. with headings.  The fancy diary buffer will show the holidays unless the
  333. variable `holidays-in-diary-buffer' is set to nil.  Ordinarily, the fancy
  334. diary buffer will not show days for which there are no diary entries, even
  335. if that day is a holiday; if you want such days to be shown in the fancy
  336. diary buffer, set the variable `diary-list-include-blanks' to t.")
  337. (defvar nongregorian-diary-listing-hook nil "\
  338. *List of functions to be called for the diary file and included files as
  339. they are processed for listing diary entries.  You can use any or all of
  340. `list-hebrew-diary-entries', `yahrzeit-diary-entry', and
  341. `list-islamic-diary-entries'.  The documentation for these functions
  342. describes the style of such diary entries.")
  343. (defvar mark-diary-entries-hook nil "\
  344. *List of functions called after marking diary entries in the calendar.
  345.  
  346. A function `mark-included-diary-files' is also provided for use as the
  347. mark-diary-entries-hook; it enables you to use shared diary files together
  348. with your own.  The files included are specified in the diary-file by lines
  349. of the form
  350.         #include \"filename\"
  351. This is recursive; that is, #include directives in files thus included are
  352. obeyed.  You can change the \"#include\" to some other string by changing the
  353. variable `diary-include-string'.  When you use `mark-included-diary-files' as
  354. part of the mark-diary-entries-hook, you will probably also want to use the
  355. function `include-other-diary-files' as part of the list-diary-entries-hook.")
  356. (defvar nongregorian-diary-marking-hook nil "\
  357. *List of functions to be called as the diary file and included files are
  358. processed for marking diary entries.  You can use either or both of
  359. mark-hebrew-diary-entries and mark-islamic-diary-entries.  The documentation
  360. for these functions describes the style of such diary entries.")
  361. (defvar diary-list-include-blanks nil "\
  362. *If nil, do not include days with no diary entry in the list of diary
  363. entries.  Such days will then not be shown in the the fancy diary buffer,
  364. even if they are holidays.")
  365. (defvar holidays-in-diary-buffer t "\
  366. *If t, the holidays will be indicated in the mode line of the diary buffer
  367. (or in the fancy diary buffer next to the date).  This slows down the diary
  368. functions somewhat; setting it to nil will make the diary display faster.")
  369. (defvar calendar-holidays '((fixed 1 1 "New Year's Day") (float 1 1 3 "Martin Luther King Day") (fixed 2 2 "Ground Hog Day") (fixed 2 14 "Valentine's Day") (float 2 1 3 "President's Day") (fixed 3 17 "St. Patrick's Day") (fixed 4 1 "April Fool's Day") (float 4 0 1 "Daylight Savings Time Begins") (float 5 0 2 "Mother's Day") (float 5 1 -1 "Memorial Day") (fixed 6 14 "Flag Day") (float 6 0 3 "Father's Day") (fixed 7 4 "Independence Day") (float 9 1 1 "Labor Day") (float 10 1 2 "Columbus Day") (float 10 0 -1 "Daylight Savings Time Ends") (fixed 10 31 "Halloween") (fixed 11 11 "Veteran's Day") (float 11 4 4 "Thanksgiving") (if all-christian-calendar-holidays (fixed 1 6 "Epiphany")) (easter-etc) (if all-christian-calendar-holidays (fixed 8 15 "Assumption")) (if all-christian-calendar-holidays (advent)) (fixed 12 25 "Christmas") (if all-christian-calendar-holidays (julian 12 25 "Eastern Orthodox Christmas")) (rosh-hashanah-etc) (if all-hebrew-calendar-holidays (julian 11 (let* ((m displayed-month) (y displayed-year) (year)) (increment-calendar-month m y -1) (let ((year (extract-calendar-year (calendar-julian-from-absolute (calendar-absolute-from-gregorian (list m 1 y)))))) (if (zerop (% (1+ year) 4)) 22 21))) "\"Tal Umatar\" (evening)")) (if all-hebrew-calendar-holidays (hanukkah) (hebrew 9 25 "Hanukkah")) (if all-hebrew-calendar-holidays (hebrew 10 (let ((h-year (extract-calendar-year (calendar-hebrew-from-absolute (calendar-absolute-from-gregorian (list displayed-month 28 displayed-year)))))) (if (= (% (calendar-absolute-from-hebrew (list 10 10 h-year)) 7) 6) 11 10)) "Tzom Teveth")) (if all-hebrew-calendar-holidays (hebrew 11 15 "Tu B'Shevat")) (if all-hebrew-calendar-holidays (hebrew 11 (let ((m displayed-month) (y displayed-year)) (increment-calendar-month m y 1) (let* ((h-year (extract-calendar-year (calendar-hebrew-from-absolute (calendar-absolute-from-gregorian (list m (calendar-last-day-of-month m y) y))))) (s-s (calendar-hebrew-from-absolute (if (= (% (calendar-absolute-from-hebrew (list 7 1 h-year)) 7) 6) (calendar-dayname-on-or-before 6 (calendar-absolute-from-hebrew (list 11 17 h-year))) (calendar-dayname-on-or-before 6 (calendar-absolute-from-hebrew (list 11 16 h-year)))))) (day (extract-calendar-day s-s))) day)) "Shabbat Shirah")) (passover-etc) (if (and all-hebrew-calendar-holidays (let* ((m displayed-month) (y displayed-year) (year)) (increment-calendar-month m y -1) (let ((year (extract-calendar-year (calendar-julian-from-absolute (calendar-absolute-from-gregorian (list m 1 y)))))) (= 21 (% year 28))))) (julian 3 26 "Kiddush HaHamah")) (if all-hebrew-calendar-holidays (tisha-b-av-etc)) (islamic 1 1 (format "Islamic New Year %d" (let ((m displayed-month) (y displayed-year)) (increment-calendar-month m y 1) (extract-calendar-year (calendar-islamic-from-absolute (calendar-absolute-from-gregorian (list m (calendar-last-day-of-month m y) y))))))) (if all-islamic-calendar-holidays (islamic 1 10 "Ashura")) (if all-islamic-calendar-holidays (islamic 3 12 "Mulad-al-Nabi")) (if all-islamic-calendar-holidays (islamic 7 26 "Shab-e-Mi'raj")) (if all-islamic-calendar-holidays (islamic 8 15 "Shab-e-Bara't")) (islamic 9 1 "Ramadan Begins") (if all-islamic-calendar-holidays (islamic 9 27 "Shab-e Qadr")) (if all-islamic-calendar-holidays (islamic 10 1 "Id-al-Fitr")) (if all-islamic-calendar-holidays (islamic 12 10 "Id-al-Adha"))) "\
  370. List of notable days for the command M-x holidays.
  371. Additional holidays are easy to add to the list.  The possible holiday-forms
  372. are as follows:
  373.  
  374.     (fixed MONTH DAY STRING)   a fixed date on the Gregorian calendar
  375.     (float MONTH DAYNAME K STRING) the Kth DAYNAME in MONTH on the Gregorian
  376.                                calendar (0 for Sunday, etc.); K<0 means
  377.                                count back from the end of the month
  378.     (hebrew MONTH DAY STRING)  a fixed date on the Hebrew calendar
  379.     (islamic MONTH DAY STRING) a fixed date on the Islamic calendar
  380.     (julian MONTH DAY STRING)  a fixed date on the Julian calendar
  381.     (if BOOLEAN HOLIDAY-FORM &optional HOLIDAY-FORM) gives a choice between
  382.                                two holidays based on the value of BOOLEAN
  383.     (FUNCTION &optional ARGS)  dates requiring special computation; ARGS,
  384.                                if any, are passed in a list to the function
  385.                                `calendar-holiday-function-FUNCTION'
  386.  
  387. For example, to add Bastille Day, celebrated in France on July 14, add
  388.  
  389.      (fixed 7 14 \"Bastille Day\")
  390.  
  391. to the list.  To add Hurricane Supplication Day, celebrated in the Virgin
  392. Islands on the fourth Monday in August, add
  393.  
  394.      (float 8 1 4 \"Hurricane Supplication Day\")
  395.  
  396. to the list (the last Monday would be specified with `-1' instead of `4').
  397. To add the last day of Hanukah to the list, use
  398.  
  399.      (hebrew 10 2 \"Last day of Hanukah\")
  400.  
  401. since the Hebrew months are numbered with 1 starting from Nisan, while to
  402. add the Islamic feast celebrating Mohammed's birthday use
  403.  
  404.      (islamic 3 12 \"Mohammed's Birthday\")
  405.  
  406. since the Islamic months are numbered from 1 starting with Muharram.  To
  407. add Thomas Jefferson's birthday, April 2, 1743 (Julian), use
  408.  
  409.      (julian 4 2 \"Jefferson's Birthday\")
  410.  
  411. To include a holiday conditionally, use the if form.  For example, to
  412. include American presidential elections, which occur on the first Tuesday
  413. after the first Monday in November of years divisble by 4, add
  414.  
  415.      (if (zerop (% displayed-year 4))
  416.          (fixed 11
  417.                 (extract-calendar-day
  418.                  (calendar-gregorian-from-absolute
  419.                   (1+ (calendar-dayname-on-or-before
  420.                        1 (+ 6 (calendar-absolute-from-gregorian
  421.                                (list 11 1 displayed-year)))))))
  422.                 \"US Presidential Election\"))
  423.  
  424. to the list.  To include the phases of the moon, add
  425.  
  426.      (lunar-phases)
  427.  
  428. to the holiday list, where `calendar-holiday-function-lunar-phases' is an
  429. Emacs-Lisp function that you've written to return a (possibly empty) list of
  430. the relevant VISIBLE dates with descriptive strings such as
  431.  
  432.      (((2 6 1989) \"New Moon\") ((2 12 1989) \"First Quarter Moon\") ... )
  433.  
  434. The fixed, float, hebrew, islamic, julian and if forms are implemented by
  435. the inclusion of the functions `calendar-holiday-function-fixed',
  436. `calendar-holiday-function-float', `calendar-holiday-function-hebrew',
  437. `calendar-holiday-function-islamic', `calendar-holiday-function-julian',
  438. and `calendar-holiday-function-if', respectively.")
  439. (defconst calendar-buffer "*Calendar*" "\
  440. Name of the buffer used for the calendar.")
  441. (defconst holiday-buffer "*Holidays*" "\
  442. Name of the buffer used for the displaying the holidays.")
  443. (defconst fancy-diary-buffer "*Fancy Diary Entries*" "\
  444. Name of the buffer used for the optional fancy display of the diary.")
  445. (fset 'increment-calendar-month '(macro . #[(mon yr n) "└┴┬├ ┼E╟»DC╔╩E╔ ╦EFç" [let macro-y + * yr 12 mon -1 n setq (1+ (% macro-y 12)) (/ macro-y 12)] 7 "\
  446. Move the variables MON and YR to the month and year N months forward
  447. if N is positive or backward if N is negative."]))
  448. (fset 'calendar-for-loop '(macro . #[(var from init to final do &rest body) "└    ┬ DDC─┼╞╚    ╔    DEED\n\"Eç" [let var 1- init append while >= final setq 1+ body] 10 "\
  449. Execute a for loop."]))
  450. (fset 'calendar-sum '(macro . #[(index initial condition expression) "└    \nD├D─╞╟╚╟    EE╞    ╩    DEF╟Fç" [let index initial (sum 0) while condition setq sum + expression 1+] 9 "\
  451. For INDEX = INITIAL and successive integers, as long as CONDITION holds,
  452. sum EXPRESSION."]))
  453. (fset 'calendar #[(&optional arg) "½à┴!¬ü┬├ !qê┼ ê╞ ╚╔\n ╠ !ê═!êE½Ü╙!½ö╘╒!½ë╫!H¬é!ê)╪!ë¡ä█!ë½â▌¬ü╔\n½â▀ ê-αß!ç" [arg prefix-numeric-value 0 get-buffer-create calendar-buffer calendar-mode current-window-configuration calendar-window-configuration t 1000 split-height-threshold pop-up-windows pop-to-buffer regenerate-calendar-window current-month current-day current-year date view-diary-entries-initially calendar-date-is-visible-p view-diary-entries vectorp number-of-diary-entries calendar-day-of-week get-file-buffer diary-file diary-buffer get-buffer-window diary-window 2 view-calendar-holidays-initially list-calendar-holidays run-hooks initial-calendar-window-hook] 5 "\
  454. Display a three-month calendar in another window.
  455. The three months appear side by side, with the current month in the middle
  456. surrounded by the previous and next months.  The cursor is put on today's date.
  457.  
  458. This function is suitable for execution in a .emacs file; appropriate setting
  459. of the variable `view-diary-entries-initially' will cause the diary entries for
  460. the current date to be displayed in another window.  The value of the variable
  461. `number-of-diary-entries' controls the number of days of diary entries
  462. displayed upon initial display of the calendar.
  463.  
  464. An optional prefix argument ARG causes the calendar displayed to be ARG
  465. months in the future if ARG is positive or in the past if ARG is negative;
  466. in this case the cursor goes on the first day of the month.
  467.  
  468. Once in the calendar window, future or past months can be moved into view.
  469. Arbitrary months can be displayed, or the calendar can be scrolled forward
  470. or backward.
  471.  
  472. The cursor can be moved forward or backward by one day, one week, one month,
  473. or one year.  All of these commands take prefix arguments which, when negative,
  474. cause movement in the opposite direction.  For convenience, the digit keys
  475. and the minus sign are automatically prefixes.  The window is replotted as
  476. necessary to display the desired date.
  477.  
  478. Diary entries can be marked on the calendar or displayed in another window.
  479.  
  480. Use M-x describe-mode for details of the key bindings in the calendar window.
  481.  
  482. The Gregorian calendar is assumed.
  483.  
  484. After preparing the calendar window initially, the hooks given by the variable
  485. `initial-calendar-window-hook' are run.
  486.  
  487. The hooks given by the variable `today-visible-calendar-hook' are run
  488. everytime the calendar window gets scrolled, if the current date is visible
  489. in the window.  If it is not visible, the hooks given by the variable
  490. `today-invisible-calendar-hook' are run.  Thus, for example, setting
  491. `today-visible-calendar-hook' to 'calendar-star-date will cause today's date
  492. to be replaced by asterisks to highlight it whenever it is in the window." "P"])
  493. (autoload 'view-diary-entries "diary" "\
  494. Prepare and display a buffer with diary entries.
  495. Searches the file diary-file for entries that match ARG days starting with
  496. the date indicated by the cursor position in the displayed three-month
  497. calendar." t)
  498. (autoload 'show-all-diary-entries "diary" "\
  499. Show all of the diary entries in the diary-file.
  500. This function gets rid of the selective display of the diary-file so that
  501. all entries, not just some, are visible.  If there is no diary buffer, one
  502. is created." t)
  503. (autoload 'mark-diary-entries "diary" "\
  504. Mark days in the calendar window that have diary entries.
  505. Each entry in diary-file visible in the calendar window is marked." t)
  506. (autoload 'insert-diary-entry "diary" "\
  507. Insert a diary entry for the date indicated by point." t)
  508. (autoload 'insert-weekly-diary-entry "diary" "\
  509. Insert a weekly diary entry for the day of the week indicated by point." t)
  510. (autoload 'insert-monthly-diary-entry "diary" "\
  511. Insert a monthly diary entry for the day of the month indicated by point." t)
  512. (autoload 'insert-yearly-diary-entry "diary" "\
  513. Insert an annual diary entry for the day of the year indicated by point." t)
  514. (autoload 'insert-anniversary-diary-entry "diary" "\
  515. Insert an anniversary diary entry for the date indicated by point." t)
  516. (autoload 'insert-block-diary-entry "diary" "\
  517. Insert a block diary entry for the dates indicated by point and mark." t)
  518. (autoload 'insert-cyclic-diary-entry "diary" "\
  519. Insert a cyclic diary entry starting at the date indicated by point." t)
  520. (autoload 'insert-hebrew-diary-entry "diary" "\
  521. Insert a diary entry for the Hebrew date corresponding to the date
  522. indicated by point." t)
  523. (autoload 'insert-monthly-hebrew-diary-entry "diary" "\
  524. Insert a monthly diary entry for the day of the Hebrew month corresponding
  525. to the date indicated by point." t)
  526. (autoload 'insert-yearly-hebrew-diary-entry "diary" "\
  527. Insert an annual diary entry for the day of the Hebrew year corresponding
  528. to the date indicated by point." t)
  529. (autoload 'insert-islamic-diary-entry "diary" "\
  530. Insert a diary entry for the Islamic date corresponding to the date
  531. indicated by point." t)
  532. (autoload 'insert-monthly-islamic-diary-entry "diary" "\
  533. Insert a monthly diary entry for the day of the Islamic month corresponding
  534. to the date indicated by point." t)
  535. (autoload 'insert-yearly-islamic-diary-entry "diary" "\
  536. Insert an annual diary entry for the day of the Islamic year corresponding
  537. to the date indicated by point." t)
  538. (autoload 'list-calendar-holidays "holiday" "\
  539. Create a buffer containing the holidays for the current calendar window.
  540. The holidays are those in the list `calendar-notable-days'.  Returns t if any
  541. holidays are found, nil if not." t)
  542. (autoload 'mark-calendar-holidays "holiday" "\
  543. Mark notable days in the calendar window." t)
  544. (autoload 'calendar-cursor-holidays "holiday" "\
  545. Find holidays for the date specified by the cursor in the calendar window." t)
  546. (fset 'regenerate-calendar-window #[(&optional arg) "¼é┴┬─X¡â┼Y╟ ╔!\n╦! ═!╧!╤ ê\n ╒_\n┼\\\\\\ë╒ªT\n╒Ñ)╫\n\"ê╪½ä¬å─E!ê█┬!ê▄▌!¼Ä▐ ▀ U½çαß ΓZ!êπ┴!ê$½êσ ½äπ┴!êµÄ'¡éΦ .ç" [arg 0 nil buffer-read-only 1 -1 today-visible calendar-current-date today extract-calendar-month month extract-calendar-day day extract-calendar-year year calendar-day-of-week day-in-week update-calendar-mode-line current-month current-day current-year 12 macro-y generate-calendar calendar-cursor-to-visible-date displayed-month displayed-year set-buffer-modified-p one-window-p t screen-width window-width shrink-window window-height 9 sit-for mark-holidays-in-calendar mark-calendar-holidays ((byte-code "½å┴┬!ê¬ä┴├!ê┴ç" [today-visible run-hooks today-visible-calendar-hook today-invisible-calendar-hook] 2)) mark-diary-entries-in-calendar mark-diary-entries] 5 "\
  547. Generate the calendar window, offset from the current date by ARG months."])
  548. (fset 'generate-calendar #[(month year) "    S┬_\\├W½ä─┼!ê    ╚ ê    ┬_╔\\\\ë\n┬ªT\n┬Ñ)╦ ├ Të Y¡ƒ═     ╬_╧\\#ê    ┬_\\ë\n┬ªT\n┬Ñ)¬W)ç" [month year 12 2 error "Months before February, 1 AD are not available." displayed-month displayed-year erase-buffer -2 macro-y -1 i generate-calendar-month 25 5] 6 "\
  549. Generate a three-month Gregorian calendar centered around MONTH, YEAR."])
  550. (fset 'generate-calendar-month #[(month year indent) "└    ┬ E!┼ Z╟     \"ebê╔╩╦╠    ! #╬#ê╔╧╬#ê╔╨\"ê╤ TëY½à╙cê¬q)╤TëY¡¿╩╘\"cê┼ª┼ªU½cU¼\\╔╨╤╬#½U╔╨\"ê¬M,ç" [calendar-day-of-week month 1 year first-day-of-month 7 first-saturday calendar-last-day-of-month last calendar-insert-indented format "   %s %d" calendar-month-name indent t " S  M Tu  W Th  F  S" "" 0 i "   " "%2d "] 5 "\
  551. Produce a calendar for MONTH, YEAR on the Gregorian calendar.
  552. The calendar is inserted in the buffer starting at the line on which point
  553. is currently located, but indented INDENT spaces.  The indentation is done
  554. from the first character on the line and does not disturb the first INDENT
  555. characters on the line."])
  556. (fset 'calendar-insert-indented #[(string indent &optional newline) "└    !êi    W½â    jê\ncê ½Ä─êm½à├ ê¬â┼yê╞ç" [move-to-column indent string newline nil 1 t] 2 "\
  557. Insert STRING at column INDENT.
  558. If the optional parameter NEWLINE is t, leave point at start of next line,
  559. inserting a newline if there was no next line; otherwise, leave point after
  560. the inserted text.  Value is always t."])
  561. (fset 'redraw-calendar #[nil "└┴\n $!ç" [regenerate-calendar-window calendar-interval current-month current-year displayed-month displayed-year] 6 "\
  562. Redraw the calendar display." nil])
  563. (byte-code "└┴!¼é┬    äa├ ─╞TëY½è╟    ╚!╔#ê¬n)╩╦╠═╬╧╨╤╥╙╘╒╓»@½ú╪@!ë@½É╟    @┌#êAë¬mA)¬X)╟    █▄#ê╟    ▌▐#ê╟    ▀α#ê╟    ßΓ#ê╟    πΣ#ê╟    σµ#ê╟    τΦ#ê╟    ΘΩ#ê╟    δ∞#ê╟    φε#ê╟    ∩≡#ê╟    ±≥#ê╟    ≤⌠#ê╟    ⌡÷#ê╟    ≈°#ê╟    ∙·#ê╟    √ⁿ#ê╟    ²■#ê╟     ü@#ê╟    üAüB#ê╟    üCüD#ê╟    üEüF#ê╟    üGüH#ê╟    üIüJ#ê╟    üKüL#ê╟    üMüN#ê╟    üOüP#ê╟    üQüR#ê╟    üSüT#ê╟    üUüV#ê╟    üWüX#ê╟    üYüZ#ê╟    ü[ü\\#ê╟    ü]ü^#ê╟    ü_ü`#ê╟    üaüb#ê╟    ücüd#ê╟    üeüf#ê╟    ügüh#ê╟    üiüj#ê╟    ükül#ê╟    ümün#ê╟    üoüp#ê╟    üqür#ê╟    üsüt#ê╟    üuüv#ê╟    üwüx#ê╟    üyüz#ê╟    ü{ü|#ê╟    ü}ü~#ê╟    üüÇ#ê╟    üüüé#ê╟    üâüä#ê╟    üàüå#ê╟    üçüê#ê╟    üëüè#ê╟    üïüî#ê╟    üìüÄ#ê╟    üÅüÉ#ê┬ç" [boundp calendar-mode-map nil make-sparse-keymap -1 i 9 define-key int-to-string digit-argument narrow-to-region mark-word mark-sexp mark-paragraph mark-defun mark-whole-buffer mark-page kill-region copy-region-as-kill downcase-region upcase-region capitalize-region write-region l where-is-internal k calendar-not-implemented "-" negative-argument ">" scroll-calendar-right "v" scroll-calendar-right-three-months "<" scroll-calendar-left "" scroll-calendar-left-three-months "" calendar-backward-day "" calendar-backward-week "" calendar-backward-month "[" calendar-backward-year "" calendar-forward-day "" calendar-forward-week "]" calendar-forward-month "]" calendar-forward-year "" calendar-beginning-of-week "" calendar-end-of-week "a" calendar-beginning-of-month "e" calendar-end-of-month "<" calendar-beginning-of-year ">" calendar-end-of-year "" calendar-set-mark "" calendar-exchange-point-and-mark "=" calendar-count-days-region "gd" calendar-goto-date "gJ" calendar-goto-julian-date "gH" calendar-goto-hebrew-date "gI" calendar-goto-islamic-date "gC" calendar-goto-iso-date " " scroll-other-window " " redraw-calendar "c" calendar-current-month "o" calendar-other-month "q" exit-calendar "a" list-calendar-holidays "h" calendar-cursor-holidays "x" mark-calendar-holidays "u" calendar-unmark "m" mark-diary-entries "d" view-diary-entries "s" show-all-diary-entries "D" cursor-to-calendar-day-of-year "C" cursor-to-iso-calendar-date "J" cursor-to-julian-calendar-date "H" cursor-to-hebrew-calendar-date "I" cursor-to-islamic-calendar-date "F" cursor-to-french-calendar-date "d" insert-diary-entry "w" insert-weekly-diary-entry "m" insert-monthly-diary-entry "y" insert-yearly-diary-entry "a" insert-anniversary-diary-entry "b" insert-block-diary-entry "c" insert-cyclic-diary-entry "Hd" insert-hebrew-diary-entry "Hm" insert-monthly-hebrew-diary-entry "Hy" insert-yearly-hebrew-diary-entry "Id" insert-islamic-diary-entry "Im" insert-monthly-islamic-diary-entry "Iy" insert-yearly-islamic-diary-entry "?" describe-calendar-mode] 14)
  564. (fset 'describe-calendar-mode #[nil "└É┴┬├─┼!─╞!#!ê╟ æç" ["*Help*" princ format "Calendar Mode:\nFor a complete description, type %s\n%s\n" substitute-command-keys "\\<calendar-mode-map>\\[describe-mode] from within the calendar" "\\{calendar-mode-map}" print-help-return-message] 7 "\
  565. Create a help buffer with a brief description of the calendar-mode." nil])
  566. (put 'calendar-mode 'mode-class 'special)
  567. (defvar calendar-mode-line-format (substitute-command-keys "\\<calendar-mode-map>\\[scroll-calendar-left]      Calendar    \\[describe-calendar-mode] help/\\[calendar-other-month] other/\\[calendar-current-month] current    %17s       \\[scroll-calendar-right]") "\
  568. The mode line of the calendar buffer.")
  569. (fset 'calendar-mode #[nil "└ ê┴├┼!ê╟╔\n╦╠!ê╦═!ê╦╬!ê╦╧!ê╦╨!ê╦╤!ê╦╥!ç" [kill-all-local-variables calendar-mode major-mode "Calendar" mode-name use-local-map calendar-mode-map t buffer-read-only nil indent-tabs-mode make-local-variable calendar-window-configuration calendar-mark-ring current-month current-day current-year displayed-month displayed-year] 2 "\
  570. A major mode for the sliding calendar window and diary.
  571.  
  572. The commands for cursor movement are:\\<calendar-mode-map>
  573.  
  574.        \\[calendar-forward-day]  one day forward           \\[calendar-backward-day]  one day backward
  575.        \\[calendar-forward-week]  one week forward          \\[calendar-backward-week]  one week backward
  576.        \\[calendar-forward-month]  one month forward       \\[calendar-backward-month]  one month backward
  577.        \\[calendar-forward-year]  one year forward        \\[calendar-backward-year]  one year backward
  578.        \\[calendar-beginning-of-week]  beginning of week         \\[calendar-end-of-week]  end of week
  579.        \\[calendar-beginning-of-month]  beginning of month      \\[calendar-end-of-month]  end of month
  580.        \\[calendar-beginning-of-year]  beginning of year       \\[calendar-end-of-year]  end of year
  581.        \\[calendar-goto-date]  go to date                \\[calendar-goto-julian-date]  go to Julian date
  582.        \\[calendar-goto-hebrew-date]  go to Hebrew date         \\[calendar-goto-islamic-date]  go to Islamic date
  583.        \\[calendar-goto-iso-date]  go to ISO date
  584.  
  585. You can mark a date in the calendar and switch the point and mark:
  586.        \\[calendar-set-mark]  mark date                 \\[calendar-exchange-point-and-mark]  exchange point and mark
  587. You can determine the number of days (inclusive) between the point and mark by
  588.        \\[calendar-count-days-region]  count days in the region
  589.  
  590. The commands for calendar movement are:
  591.  
  592.        \\[scroll-calendar-right]  scroll one month right   \\[scroll-calendar-left]  scroll one month left
  593.        \\[scroll-calendar-right-three-months]  scroll 3 months right    \\[scroll-calendar-left-three-months]  scroll 3 months left
  594.        \\[calendar-current-month]  display current month        \\[calendar-other-month]  display another month
  595.  
  596. Whenever it makes sense, the above commands take prefix arguments that
  597. multiply their affect.  For convenience, the digit keys and the minus sign
  598. are bound to digit-argument, so they need not be prefixed with ESC.
  599.  
  600. If the calendar window somehow becomes corrupted, it can be regenerated with
  601.  
  602.        \\[redraw-calendar]  redraw the calendar
  603.  
  604. The following commands deal with holidays and other notable days:
  605.  
  606.        \\[calendar-cursor-holidays]  give holidays for the date specified by the cursor
  607.        \\[mark-calendar-holidays]  mark notable days
  608.        \\[calendar-unmark]  unmark dates
  609.        \\[list-calendar-holidays]  display notable days
  610.  
  611. The command M-x holidays causes the notable dates for the current month, and
  612. the preceding and succeeding months, to be displayed, independently of the
  613. calendar.
  614.  
  615. The following commands control the diary:
  616.  
  617.        \\[mark-diary-entries]  mark diary entries          \\[calendar-unmark]  unmark dates
  618.        \\[view-diary-entries]  display diary entries       \\[show-all-diary-entries]  show all diary entries
  619.        \\[print-diary-entries]  print diary entries
  620.  
  621. Displaying the diary entries causes the diary entries from the diary-file
  622. (for the date indicated by the cursor in the calendar window) to be
  623. displayed in another window.  This function takes an integer argument that
  624. specifies the number of days of calendar entries to be displayed, starting
  625. with the date indicated by the cursor.
  626.  
  627. The command \\[print-diary-entries] prints the diary buffer (as it appears)
  628. on the line printer.
  629.  
  630. The command M-x diary causes the diary entries for the current date to be
  631. displayed, independently of the calendar.  The number of days of entries is
  632. governed by number-of-diary-entries.
  633.  
  634. The format of the entries in the diary file is described in the
  635. documentation string for the variable diary-file.
  636.  
  637. When diary entries are in view in the window, they can be edited.  It is
  638. important to keep in mind that the buffer displayed contains the entire
  639. diary file, but with portions of it concealed from view.  This means, for
  640. instance, that the forward-char command can put the cursor at what appears
  641. to be the end of the line, but what is in reality the middle of some
  642. concealed line.  BE CAREFUL WHEN EDITING THE DIARY ENTRIES! (Inserting
  643. additional lines or adding/deleting characters in the middle of a visible
  644. line will not cause problems; watch out for end-of-line, however--it may
  645. put you at the end of a concealed line far from where the cursor appears to
  646. be!)  BEFORE EDITING THE DIARY IT IS BEST TO DISPLAY THE ENTIRE FILE WITH
  647. show-all-diary-entries.  BE SURE TO WRITE THE FILE BEFORE EXITING FROM THE
  648. CALENDAR.
  649.  
  650. The following commands assist in making diary entries:
  651.  
  652.        \\[insert-diary-entry]  insert a diary entry for the selected date
  653.        \\[insert-weekly-diary-entry]  insert a diary entry for the selected day of the week
  654.        \\[insert-monthly-diary-entry]  insert a diary entry for the selected day of the month
  655.        \\[insert-yearly-diary-entry]  insert a diary entry for the selected day of the year
  656.        \\[insert-block-diary-entry]  insert a diary entry for the block days between point and mark
  657.        \\[insert-anniversary-diary-entry]  insert an anniversary diary entry for the selected date
  658.        \\[insert-cyclic-diary-entry]  insert a cyclic diary entry
  659.  
  660. There are corresponding commands to assist in making Hebrew- or Islamic-date
  661. diary entries:
  662.  
  663.        \\[insert-hebrew-diary-entry]  insert a diary entry for the Hebrew date corresponding
  664.                 to the selected date
  665.        \\[insert-monthly-hebrew-diary-entry]  insert a diary entry for the day of the Hebrew month
  666.                 corresponding to the selected day
  667.        \\[insert-yearly-hebrew-diary-entry]  insert a diary entry for the day of the Hebrew year
  668.                 corresponding to the selected day
  669.        \\[insert-islamic-diary-entry]  insert a diary entry for the Islamic date corresponding
  670.                 to the selected date
  671.        \\[insert-monthly-islamic-diary-entry]  insert a diary entry for the day of the Islamic month
  672.                 corresponding to the selected day
  673.        \\[insert-yearly-islamic-diary-entry]  insert a diary entry for the day of the Islamic year
  674.                 corresponding to the selected day
  675.  
  676. All of the diary entry commands make nonmarking entries when given a prefix
  677. argument; with no prefix argument, the diary entries are marking.
  678.  
  679. The day number in the year and the number of days remaining in the year can be
  680. determined by
  681.  
  682.        \\[cursor-to-calendar-day-of-year]  show day number and the number of days remaining in the year
  683.  
  684. Equivalent dates on the ISO commercial, Julian, Hebrew, Islamic and French
  685. Revolutionary calendars can be determined by
  686.  
  687.        \\[cursor-to-iso-calendar-date]  show equivalent date on the ISO commercial calendar
  688.        \\[cursor-to-julian-calendar-date]  show equivalent date on the Julian calendar
  689.        \\[cursor-to-hebrew-calendar-date]  show equivalent date on the Hebrew calendar
  690.        \\[cursor-to-islamic-calendar-date]  show equivalent date on the Islamic calendar
  691.        \\[cursor-to-french-calendar-date]  show equivalent date on the French Revolutionary calendar
  692.  
  693. To exit from the calendar use
  694.  
  695.        \\[exit-calendar]  exit from calendar
  696.  
  697. The variable `view-diary-entries-initially', whose default is nil, can be
  698. set to to t cause diary entries for the current date will be displayed in
  699. another window when the calendar is first displayed, if the current date is
  700. visible.  The variable `number-of-diary-entries' controls number of days of
  701. diary entries that will be displayed initially or with the command M-x
  702. diary.  For example, if the default value 1 is used, then only the current
  703. day's diary entries will be displayed.  If the value 2 is used, both the
  704. current day's and the next day's entries will be displayed.  The value can
  705. also be a vector: If the value is [0 2 2 2 2 4 1] then no diary entries
  706. will be displayed on Sunday, the current date's and the next day's diary
  707. entries will be displayed Monday through Thursday, Friday through Monday's
  708. entries will be displayed on Friday, while on Saturday only that day's
  709. entries will be displayed.
  710.  
  711. The variable `view-calendar-holidays-initially' can be set to t to cause
  712. the holidays for the current three month period will be displayed on entry
  713. to the calendar.  The holidays are displayed in another window.
  714.  
  715. The variable `mark-diary-entries-in-calendar' can be set to t to cause any
  716. dates visible with calendar entries to be marked with the symbol specified
  717. by the variable `diary-entry-marker', normally a plus sign.
  718.  
  719. The variable `initial-calendar-window-hook', whose default value is nil,
  720. is list of functions to be called when the calendar window is first opened.
  721. The functions invoked are called after the calendar window is opened, but
  722. once opened is never called again.  Leaving the calendar with the `q' command
  723. and reentering it will cause these functions to be called again.
  724.  
  725. The variable `today-visible-calendar-hook', whose default value is nil,
  726. is the list of functions called after the calendar buffer has been prepared
  727. with the calendar when the current date is visible in the window.
  728. This can be used, for example, to replace today's date with asterisks; a
  729. function calendar-star-date is included for this purpose:
  730.     (setq today-visible-calendar-hook 'calendar-star-date)
  731. It could also be used to mark the current date with `*'; a function is also
  732. provided for this:
  733.     (setq today-visible-calendar-hook 'calendar-mark-today)
  734.  
  735. The variable `today-invisible-calendar-hook', whose default value is nil,
  736. is the list of functions called after the calendar buffer has been prepared
  737. with the calendar when the current date is not visible in the window.
  738.  
  739. The variable `list-diary-entries-hook' is the list of functions called
  740. after the diary buffer is prepared.  The default value simply displays the
  741. diary file using selective-display to conceal irrelevant diary entries.  An
  742. alternative function `prepare-fancy-diary-buffer' is provided that, when
  743. used as the `list-diary-entries-hook', causes a noneditable buffer to be
  744. prepared with a neatly organized day-by-day listing of relevant diary
  745. entries, together with any known holidays.  The inclusion of the holidays
  746. slows this fancy display of the diary; to speed it up, set the variable
  747. `holidays-in-diary-buffer' to nil.
  748.  
  749. The variable `print-diary-entries-hook' is the list of functions called
  750. after a temporary buffer is prepared with the diary entries currently
  751. visible in the diary buffer.  The default value of this hook adds a heading
  752. (composed from the diary buffer's mode line), does the printing with the
  753. command lpr-buffer, and kills the temporary buffer.  Other uses might
  754. include, for example, rearranging the lines into order by day and time.
  755.  
  756. The Gregorian calendar is assumed."])
  757. (fset 'update-calendar-mode-line #[nil "└┴\n!!¡Éè\nqê├ ┼╞ ╟\"\"ë)ç" [bufferp get-buffer calendar-buffer format calendar-mode-line-format calendar-date-string calendar-current-date t mode-line-format] 5 "\
  758. Update the calendar mode line with the current date and date style."])
  759. (fset 'exit-calendar #[nil "└    !┬ !┬ !ë¼¢╚    !ê╩ !ê½à╩!ê¡╢╩!¬▒╠!½à═╬!¡ª╚    !ê╩ !ê½à╩!ê½ä╩!êqê╧╨!ê╩!+ç" [get-file-buffer diary-file get-buffer fancy-diary-buffer holiday-buffer h-buffer d-buffer diary-buffer set-window-configuration calendar-window-configuration kill-buffer calendar-buffer buffer-modified-p yes-or-no-p "Diary modified; do you really want to exit the calendar? " set-buffer-modified-p nil] 5 "\
  760. Get out of the calendar window and destroy it and related buffers." nil])
  761. (fset 'calendar-current-month #[nil "└ ┬    !¼ä├ ¬å─ ê┼    !)ç" [calendar-current-date today calendar-date-is-visible-p regenerate-calendar-window update-calendar-mode-line calendar-cursor-to-visible-date] 2 "\
  762. Reposition the calendar window so the current date is visible." nil])
  763. (fset 'calendar-forward-month #[(arg) "└ ê┴ «â┬├!┼ !╟ !╔ !ë\n╦_ ═\\\\\\ë╦ªT╦Ñ\n)╧\n\"ëW½ä)\nE╥!¼ç╙\n\"ê╘!-ç" [calendar-cursor-to-nearest-date calendar-cursor-to-date error "Cursor is not on a date!" cursor-date extract-calendar-month month extract-calendar-day day extract-calendar-year year 12 arg -1 macro-y calendar-last-day-of-month last new-cursor-date calendar-date-is-visible-p calendar-other-month calendar-cursor-to-visible-date] 5 "\
  764. Move the cursor forward ARG months.
  765. Movement is backward if ARG is negative." "p"])
  766. (fset 'calendar-forward-year #[(arg) "└    ┬_!ç" [calendar-forward-month arg 12] 3 "\
  767. Move the cursor forward by ARG years.
  768. Movement is backward if ARG is negative." "p"])
  769. (fset 'calendar-backward-month #[(arg) "└    [!ç" [calendar-forward-month arg] 2 "\
  770. Move the cursor backward by ARG months.
  771. Movement is forward if ARG is negative." "p"])
  772. (fset 'calendar-backward-year #[(arg) "└    ┬_!ç" [calendar-forward-month arg -12] 3 "\
  773. Move the cursor backward ARG years.
  774. Movement is forward is ARG is negative." "p"])
  775. (fset 'scroll-calendar-left #[(arg) "└ ê┴ ┬ ╞U?¡º╟╚    \n  $\\!ê═╬ !½â ¬Ä╬ !½â ¬å ╧ E!*ç" [calendar-cursor-to-nearest-date calendar-cursor-to-date calendar-current-date today old-date arg 0 regenerate-calendar-window calendar-interval current-month current-year displayed-month displayed-year calendar-cursor-to-visible-date calendar-date-is-visible-p 1] 7 "\
  776. Scroll the displayed calendar left by ARG months.
  777. If ARG is negative the calendar is scrolled right.  Maintains the relative
  778. position of the cursor with respect to the calendar as well as possible." "p"])
  779. (fset 'scroll-calendar-right #[(arg) "└    [!ç" [scroll-calendar-left arg] 2 "\
  780. Scroll the displayed calendar window right by ARG months.
  781. If ARG is negative the calendar is scrolled left.  Maintains the relative
  782. position of the cursor with respect to the calendar as well as possible." "p"])
  783. (fset 'scroll-calendar-left-three-months #[(arg) "└    ┬_!ç" [scroll-calendar-left arg 3] 3 "\
  784. Scroll the displayed calendar window left by 3*ARG months.
  785. If ARG is negative the calendar is scrolled right.  Maintains the relative
  786. position of the cursor with respect to the calendar as well as possible." "p"])
  787. (fset 'scroll-calendar-right-three-months #[(arg) "└    ┬_!ç" [scroll-calendar-left arg -3] 3 "\
  788. Scroll the displayed calendar window right by 3*ARG months.
  789. If ARG is negative the calendar is scrolled left.  Maintains the relative
  790. position of the cursor with respect to the calendar as well as possible." "p"])
  791. (fset 'calendar-current-date #[nil "└ ┬├    \"┼    ╞ö╞òO╟╔╩#\"A ╠    ═ö═òO!╠    ╧ö╧òO!p╤!ܽî  E-ç" [current-time-string date string-match "^\\([A-Z][a-z]*\\) *\\([A-Z][a-z]*\\) *\\([0-9]*\\) .* \\([0-9]*\\)$" garbage assoc 2 calendar-make-alist calendar-month-name-array 1 (lambda (x) (substring x 0 3)) month string-to-int 3 day 4 year get-buffer calendar-buffer current-month current-day current-year] 6 "\
  792. Returns the current date in a list (month day year).
  793. If in the calendar buffer, also sets the current date local variables."])
  794. (fset 'calendar-cursor-to-date #[nil "└┴!¡≡┬├e`\"W¡Φè─┼!ê╞uê╟``╚\\{!ë    ╩U½ä ¬é        i╠Ñ╧\\\\╨ªë╩U½â╨¬éë╨U½ï╩U½àS¬ô╞U½ï┬U½àT¬é    E.ç" [looking-at "[*0-9]" 2 count-lines re-search-backward "[^0-9]" 1 string-to-int 3 day 0 current-day 25 segment displayed-month -1 12 month displayed-year year] 5 "\
  795. Returns a list of the month, day, and year of current cursor position.
  796. Returns nil if the cursor is not on a specific day."])
  797. (fset 'calendar-cursor-to-nearest-date #[nil "└ ië½â\n¬╟├─e`\"V½ê┼├!ê╞    !ê╟╚!¼░╟╔!¼Ñ    ╩W¼ö    ╦V½à    ╠W¼è    ═V½æ    ╬W½î╧╚╨╤#ê╥╙!ê¬å╘╚╨╤#ê└ *ç" [calendar-cursor-to-date column date 3 count-lines goto-line move-to-column looking-at "[0-9]" " *$" 25 27 50 52 75 re-search-forward nil t backward-char 1 re-search-backward] 5 "\
  798. Move the cursor to the closest date.
  799. The position of the cursor is unchanged if it is already on a date.
  800. Returns the list (month day year) giving the cursor position."])
  801. (fset 'calendar-forward-day #[(arg) "┴U?¡╗┬ ë½â ¬è┴V½âS─ ┼╞ !\\!╚!    ╩! ╠!¼ç═     \"ê╬!-ç" [arg 0 calendar-cursor-to-date cursor-date calendar-cursor-to-nearest-date calendar-gregorian-from-absolute calendar-absolute-from-gregorian new-cursor-date extract-calendar-month new-display-month extract-calendar-year new-display-year calendar-date-is-visible-p calendar-other-month calendar-cursor-to-visible-date] 4 "\
  802. Move the cursor forward ARG days.
  803. Moves backward if ARG is negative." "p"])
  804. (fset 'calendar-backward-day #[(arg) "└    [!ç" [calendar-forward-day arg] 2 "\
  805. Move the cursor back ARG days.
  806. Moves forward if ARG is negative." "p"])
  807. (fset 'calendar-forward-week #[(arg) "└    ┬_!ç" [calendar-forward-day arg 7] 3 "\
  808. Move the cursor forward ARG weeks.
  809. Moves backward if ARG is negative." "p"])
  810. (fset 'calendar-backward-week #[(arg) "└    ┬_!ç" [calendar-forward-day arg -7] 3 "\
  811. Move the cursor back ARG weeks.
  812. Moves forward if ARG is negative." "p"])
  813. (fset 'calendar-beginning-of-week #[(arg) "└ ê┴┬ !─ ┼U½å╟_¬ç S╟_\\!)ç" [calendar-cursor-to-nearest-date calendar-day-of-week calendar-cursor-to-date day calendar-backward-day 0 arg 7] 4 "\
  814. Move the cursor back ARG Sundays." "p"])
  815. (fset 'calendar-end-of-week #[(arg) "└ ê┴┬ !─ ┼U½å╟_¬ë┼ ZS╟_\\!)ç" [calendar-cursor-to-nearest-date calendar-day-of-week calendar-cursor-to-date day calendar-forward-day 6 arg 7] 4 "\
  816. Move the cursor forward ARG Saturdays." "p"])
  817. (fset 'calendar-beginning-of-month #[(arg) "└ ê┴ ├\n!┼\n!╟\n!╔U½å╩ !¬ì╠ ╔E!ê╩ S!,ç" [calendar-cursor-to-nearest-date calendar-cursor-to-date date extract-calendar-month month extract-calendar-day day extract-calendar-year year 1 calendar-backward-month arg calendar-cursor-to-visible-date] 4 "\
  818. Move the cursor backward ARG month beginnings." "p"])
  819. (fset 'calendar-end-of-month #[(arg) "└ ê┴ ├\n!┼\n!╟\n!╔ \"\n\nU¼Ä╦ \nE!ê S ═_  ╬\\\\\\ë═ªT═Ñ) ╔ \"E\n╨\n!¼ç╤ \"¬ä╦\n!.ç" [calendar-cursor-to-nearest-date calendar-cursor-to-date date extract-calendar-month month extract-calendar-day day extract-calendar-year year calendar-last-day-of-month last-day calendar-cursor-to-visible-date arg 12 -1 macro-y calendar-date-is-visible-p calendar-other-month] 5 "\
  820. Move the cursor forward ARG month ends." "p"])
  821. (fset 'calendar-beginning-of-year #[(arg) "└ ê┴ ├\n!┼\n!╟\n!╔ëE\n╔U½ì ╔U½ê╦ ═_!¬¢ ╔U½î╬\n!½å╧\n!¬ë╨╔ SZ\"-ç" [calendar-cursor-to-nearest-date calendar-cursor-to-date date extract-calendar-month month extract-calendar-day day extract-calendar-year year 1 jan-first calendar-backward-month arg 12 calendar-date-is-visible-p calendar-cursor-to-visible-date calendar-other-month] 4 "\
  822. Move the cursor backward ARG year beginnings." "p"])
  823. (fset 'calendar-end-of-year #[(arg) "└ ê┴ ├\n!┼\n!╟\n!╟\n!╔╩E ╩U½ì ╔U½ê╠╔_!¬ú╬U½î╧ !½å╨ !¬æ╤╔SZ\"ê╨╔╩E!.ç" [calendar-cursor-to-nearest-date calendar-cursor-to-date date extract-calendar-month month extract-calendar-day day extract-calendar-year year 12 31 dec-31 calendar-forward-month arg 1 calendar-date-is-visible-p calendar-cursor-to-visible-date calendar-other-month displayed-year] 4 "\
  824. Move the cursor forward ARG year beginnings." "p"])
  825. (fset 'extract-calendar-month #[(date) "@ç" [date] 1 "\
  826. Extract the month part of DATE which has the form (month day year)."])
  827. (fset 'extract-calendar-day #[(date) "A@ç" [date] 1 "\
  828. Extract the day part of DATE which has the form (month day year)."])
  829. (fset 'extract-calendar-year #[(date) "AA@ç" [date] 1 "\
  830. Extract the year part of DATE which has the form (month day year)."])
  831. (fset 'calendar-gregorian-from-absolute #[(date) "┴Ñëë├╞╟ëTE!Y½ë ╟\\T¬l *\\╟├    ╞    ╩    \"E!V½ï ╟\\    T    ¬d *T ╞ ╟E!SZ   E,ç" [date 366 approx 0 sum y calendar-absolute-from-gregorian 1 year m calendar-last-day-of-month month day] 7 "\
  832. Compute the list (month day year) corresponding to the absolute DATE.
  833. The absolute date is the number of days elapsed since the (imaginary)
  834. Gregorian date Sunday, December 31, 1 BC."])
  835. (fset 'calendar-cursor-to-visible-date #[(date) "└    !┬    !├    !╟╚╔ E!╩\\\\╦Ñ╠\\!ê═╬ $T╤_╚    !╠_╥\\\\!+ç" [extract-calendar-month date extract-calendar-day extract-calendar-year year day month goto-line calendar-day-of-week 1 -1 7 3 move-to-column calendar-interval displayed-month displayed-year 25 6] 6 "\
  836. Move the cursor to DATE that is on the screen."])
  837. (fset 'calendar-other-month #[(month year) "    U¡â\n U?¡«─ ┼ ╚╔\n \n$!ê╠═!½ä¬Ä═!½ä¬ä╬\nE!*ç" [month displayed-month year displayed-year calendar-cursor-to-date calendar-current-date today old-date regenerate-calendar-window calendar-interval current-month current-year calendar-cursor-to-visible-date calendar-date-is-visible-p 1] 6 "\
  838. Display a three-month calendar centered around MONTH and YEAR." (byte-code "└┬├─┼╞╟╚    ╩\"\"╩└$!╦    !\"A ═╬╧╨!# +Dç" [t completion-ignore-case assoc capitalize completing-read "Month name: " mapcar list append calendar-month-name-array nil calendar-make-alist month calendar-read "Year (>0): " (lambda (x) (> x 0)) int-to-string current-year year] 9)])
  839. (fset 'calendar-set-mark #[(arg) "└ «â┴┬! ¼ÿ BëGTV½ç¢╟íê╚╔!¬ö¼à┴╩!¬î╦@!ê CñAë)ç" [calendar-cursor-to-date error "Cursor is not on a date!" date arg calendar-mark-ring mark-ring-max nil message "Mark set" "No mark set in this buffer" calendar-goto-date] 3 "\
  840. Mark the date under the cursor, or jump to marked date.
  841. With no prefix argument, push current date onto marked date ring.
  842. With argument, jump to mark, pop it, and put point at end of ring." "P"])
  843. (fset 'calendar-exchange-point-and-mark #[nil "@┴ «â┬├!ë¼à┬╞!¬ê AB╟!*ç" [calendar-mark-ring calendar-cursor-to-date error "Cursor is not on a date!" date mark "No mark set in this buffer" calendar-goto-date] 4 "\
  844. Exchange the current cursor position with the marked date." nil])
  845. (fset 'calendar-count-days-region #[nil "└┴ «â┬├!!└ @«â┬┼!!Zë╟V½ä¬â[T╚╔ë╩V½â╦¬ü╠#*ç" [calendar-absolute-from-gregorian calendar-cursor-to-date error "Cursor is not on a date!" calendar-mark-ring "No mark set in this buffer" days 0 message "Region has %d day%s (inclusive)" 1 "s" ""] 6 "\
  846. Count the number of days (inclusive) between point and the mark." nil])
  847. (fset 'calendar-not-implemented #[nil "└┴┬├ !\"ç" [error "%s not available in the calendar" global-key-binding this-command-keys] 4 "\
  848. Not implemented." nil])
  849. (fset 'calendar-read #[(prompt acceptable &optional initial-contents) "└    \n\" !¼ç└    \n\"¬t )ç" [read-minibuffer prompt initial-contents value acceptable] 3 "\
  850. Return an object read from the minibuffer.
  851. Prompt with the string PROMPT and use the function ACCEPTABLE to decide if
  852. entered item is acceptable.  If non-nil, optional third arg INITIAL-CONTENTS
  853. is a string to insert in the minibuffer before reading."])
  854. (fset 'calendar-goto-date #[(date) "└    !┬    !┼    !¼Æ╞ ╟U½ê ╟U½â╚¬ü \"ê*╔    !ç" [extract-calendar-month date extract-calendar-year year month calendar-date-is-visible-p calendar-other-month 1 2 calendar-cursor-to-visible-date] 3 "\
  855. Move cursor to DATE." (byte-code "└┴┬├ !#╚    ╩╦╠═╬╧╨╤\"\"╤╚$!╥╙╦#\"A╒\"└╫╪\"┘\"E.Cç" [calendar-read "Year (>0): " (lambda (x) (> x 0)) int-to-string current-year year calendar-month-name-array month-array t completion-ignore-case assoc capitalize completing-read "Month name: " mapcar list append nil calendar-make-alist 1 month calendar-last-day-of-month last format "Day (1-%d): " (lambda (x) (and (< 0 x) (<= x last))) day] 9)])
  856. (fset 'calendar-goto-julian-date #[(date &optional noecho) "└┴┬ !!!ê «é┼ ç" [calendar-goto-date calendar-gregorian-from-absolute calendar-absolute-from-julian date noecho cursor-to-julian-calendar-date] 4 "\
  857. Move cursor to Julian DATE; echo Julian date unless NOECHO is t." (byte-code "└┴┬├─┼╞╚    E!!!!#\n  ═╧╨╤╥╙╘╒ ╓\"\"╓═$!╫ ╚╨#\"A\n┘ª┌U½ë█U½â▄¬à▌SH└▀α\n╚U½ë╚U½â߬ü╚#Γ\"##\nE.Cç" [calendar-read "Julian calendar year (>0): " (lambda (x) (> x 0)) int-to-string extract-calendar-year calendar-julian-from-absolute calendar-absolute-from-gregorian current-month 1 current-year year calendar-month-name-array month-array t completion-ignore-case assoc capitalize completing-read "Julian calendar month name: " mapcar list append nil calendar-make-alist month 4 0 2 29 [31 28 31 30 31 30 31 31 30 31 30 31] last format "Julian calendar day (%d-%d): " 3 (lambda (x) (and (< (if (and (= year 1) (= month 1)) 2 0) x) (<= x last))) day] 10)])
  858. (fset 'calendar-goto-hebrew-date #[(date &optional noecho) "└┴┬ !!!ê «é┼ ç" [calendar-goto-date calendar-gregorian-from-absolute calendar-absolute-from-hebrew date noecho cursor-to-hebrew-calendar-date] 4 "\
  859. Move cursor to Hebrew DATE; echo Hebrew date unless NOECHO is t." (byte-code "└┴┬├─┼╞╚    E!!!!#\n╦\n!½ä ¬é╧╤╥╙╘╒╓╫╪\"\"\n┘U¡ü┌╧$!█╚╥#\"A▌\n\"\n┘U½ë▀U½âα¬ü╚!└Γπ!#Σ\"%%\nE.Cç" [calendar-read "Hebrew calendar year (>3760): " (lambda (x) (> x 3760)) int-to-string extract-calendar-year calendar-hebrew-from-absolute calendar-absolute-from-gregorian current-month 1 current-year year hebrew-calendar-leap-year-p calendar-hebrew-month-name-array-leap-year calendar-hebrew-month-name-array-common-year month-array t completion-ignore-case assoc capitalize completing-read "Hebrew calendar month name: " mapcar list append nil 3761 (lambda (x) (let ((m (cdr (assoc (car x) (calendar-make-alist month-array))))) (< 0 (calendar-absolute-from-hebrew (list m (hebrew-calendar-last-day-of-month m year) year))))) calendar-make-alist month hebrew-calendar-last-day-of-month last 10 18 first format "Hebrew calendar day (%d-%d): " (lambda (x) (and (<= first x) (<= x last))) day] 10)])
  860. (fset 'calendar-goto-islamic-date #[(date &optional noecho) "└┴┬ !!!ê «é┼ ç" [calendar-goto-date calendar-gregorian-from-absolute calendar-absolute-from-islamic date noecho cursor-to-islamic-calendar-date] 4 "\
  861. Move cursor to Islamic DATE; echo Islamic date unless NOECHO is t." (byte-code "└┴┬├─┼╞╚    E!!!!#\n  ═╧╨╤╥╙╘╒ ╓\"\"╓═$!╫ ╚╨#\"A┘\n\"└█▄\"▌\"\nE.Cç" [calendar-read "Islamic calendar year (>0): " (lambda (x) (> x 0)) int-to-string extract-calendar-year calendar-islamic-from-absolute calendar-absolute-from-gregorian current-month 1 current-year year calendar-islamic-month-name-array month-array t completion-ignore-case assoc capitalize completing-read "Islamic calendar month name: " mapcar list append nil calendar-make-alist month islamic-calendar-last-day-of-month last format "Islamic calendar day (1-%d): " (lambda (x) (and (< 0 x) (<= x last))) day] 10)])
  862. (fset 'calendar-goto-iso-date #[(date &optional noecho) "└┴┬ !!!ê «é┼ ç" [calendar-goto-date calendar-gregorian-from-absolute calendar-absolute-from-iso date noecho cursor-to-iso-calendar-date] 4 "\
  863. Move cursor to ISO DATE; echo ISO date unless NOECHO is t." (byte-code "└┴┬├ !#╞╟╚╔╩╔╦TE!\"S!! └═╬ \"╧\"└╤╥\"E,Cç" [calendar-read "ISO calendar year (>0): " (lambda (x) (> x 0)) int-to-string current-year year extract-calendar-month calendar-iso-from-absolute calendar-dayname-on-or-before 1 calendar-absolute-from-gregorian 4 no-weeks format "ISO calendar week (1-%d): " (lambda (x) (and (> x 0) (<= x no-weeks))) week "ISO day (1-7): " (lambda (x) (and (<= 1 x) (<= x 7))) day] 8)])
  864. (fset 'calendar-interval #[(mon1 yr1 mon2 yr2) "    Z┬_ Z\\ç" [yr2 yr1 12 mon2 mon1] 3 "\
  865. The number of months difference between the two specified months."])
  866. (fset 'calendar-leap-year-p #[(year) "┴ª┬U½ê├ª┬U?«à─ª┬Uç" [year 4 0 100 400] 2 "\
  867. Returns t if YEAR is a Gregorian leap year."])
  868. (fset 'calendar-day-number #[(date) "└    !├    !┼    ! \nS╟_\\\n╔V½ù\n╩_╦\\╠ÑZ═!½àT,ç" [extract-calendar-month date month extract-calendar-day day extract-calendar-year year 31 day-of-year 2 4 23 10 calendar-leap-year-p] 3 "\
  869. Return the day number within the year of the date DATE.
  870. For example, (calendar-day-number '(1 1 1987)) returns the value 1,
  871. while (calendar-day-number '(12 31 1980)) returns 366."])
  872. (fset 'calendar-day-name #[(date) "┴\n!Hç" [calendar-day-name-array calendar-day-of-week date] 3 "\
  873. Returns a string with the name of the day of the week of DATE."])
  874. (byte-code "└┬ç" [["Sunday" "Monday" "Tuesday" "Wednesday" "Thursday" "Friday" "Saturday"] calendar-day-name-array nil] 1)
  875. (fset 'calendar-last-day-of-month #[(month year) "└    !½ç\n├U½é─ç┼\nSHç" [calendar-leap-year-p year month 2 29 [31 28 31 30 31 30 31 31 30 31 30 31]] 2 "\
  876. The last day in MONTH during YEAR."])
  877. (byte-code "└┬ç" [["January" "February" "March" "April" "May" "June" "July" "August" "September" "October" "November" "December"] calendar-month-name-array nil] 1)
  878. (fset 'calendar-make-alist #[(sequence &optional start-index filter) "½äS¬ü┴├─┼╟\"\")ç" [start-index 0 index mapcar #[(x) "T    ½à    \n!¬ü\nBç" [index filter x] 2] append sequence nil] 5 "\
  879. Make an assoc list corresponding to SEQUENCE.
  880. Start at index 1, unless optional START-INDEX is provided.
  881. If FILTER is provided, apply it to each item in the list."])
  882. (fset 'calendar-month-name #[(month) "    SHç" [calendar-month-name-array month] 2 "\
  883. The name of MONTH."])
  884. (fset 'calendar-day-of-week #[(date) "└    !┬ªç" [calendar-absolute-from-gregorian date 7] 2 "\
  885. Returns the day-of-the-week index of DATE, 0 for Sunday, 1 for Monday, etc."])
  886. (fset 'calendar-absolute-from-gregorian #[(date) "└    !┬    !├    !╟    ! S╚_ S╔Ñ S╩Ñ[ S╦Ñ\\\\\\\\+ç" [extract-calendar-month date extract-calendar-day extract-calendar-year year day month calendar-day-number 365 4 100 400] 6 "\
  887. The number of days elapsed between the Gregorian date 12/31/1 BC and DATE.
  888. The Gregorian date Sunday, December 31, 1 BC is imaginary."])
  889. (fset 'calendar-unmark #[nil "└└è├─!ê┼yê└`╞╟└╚#`    \n  \n½╕═     ╬Z╧!╤╚%ê═     ╬Z╧!╤╚%ê═    d╧!╤╚%ê═    d╧!╤╚%ê¬ÿ═ d╧!╤╚%ê═ d╧!╤╚%ê╙└!-ç" [nil mark-diary-entries-in-calendar mark-holidays-in-calendar goto-line 3 0 search-forward "**" t star-point star-date start buffer-read-only subst-char-in-region 2 string-to-char diary-entry-marker 32 calendar-holiday-marker set-buffer-modified-p] 6 "\
  890. Delete the diary and holiday marks from the calendar." nil])
  891. (fset 'calendar-date-is-visible-p #[(date) "└    \n├ !┼ !$╟ !¡è╚V¡ä╔W)ç" [calendar-interval displayed-month displayed-year extract-calendar-month date extract-calendar-year gap calendar-date-is-legal-p 2 -2] 6 "\
  892. Returns t if DATE is legal and is visible in the calendar window."])
  893. (fset 'calendar-date-is-legal-p #[(date) "└    !┬    !├    !╟X¡ù╚X¡æ╟X¡î╔ \"X¡â╟ X+ç" [extract-calendar-month date extract-calendar-day extract-calendar-year year day month 1 12 calendar-last-day-of-month] 4 "\
  894. Returns t if DATE is a legal date."])
  895. (fset 'calendar-date-equal #[(date1 date2) "└    !└\n!U¡É├    !├\n!U¡ç─    !─\n!Uç" [extract-calendar-month date1 date2 extract-calendar-day extract-calendar-year] 3 "\
  896. Returns t if the DATE1 and DATE2 are the same."])
  897. (fset 'mark-visible-calendar-date #[(date &optional mark) "└    !¡ªè\nqê├    !ê─uê┼╟─!ê½ä¬é    cê╩uê)╦┼!)ç" [calendar-date-is-legal-p date calendar-buffer calendar-cursor-to-visible-date 1 nil buffer-read-only delete-char mark diary-entry-marker -2 set-buffer-modified-p] 2 "\
  898. Leave mark DATE with MARK.  MARK defaults to diary-entry-marker."])
  899. (fset 'calendar-star-date #[nil "└┬uê├─!ê┼cê╞┬!ê╟└!)ç" [nil buffer-read-only 1 delete-char -2 "**" backward-char set-buffer-modified-p] 2 "\
  900. Replace the date under the cursor in the calendar window with asterisks.
  901. This function can be used with the today-visible-calendar-hook run after the
  902. calendar window has been prepared."])
  903. (fset 'calendar-mark-today #[nil "└┬uê├┬!ê─cê┼╞!ê╟└!)ç" [nil buffer-read-only 1 delete-char "=" backward-char 2 set-buffer-modified-p] 2 "\
  904. Mark the date under the cursor in the calendar window with an equal sign.
  905. This function can be used with the today-visible-calendar-hook run after the
  906. calendar window has been prepared."])
  907. (fset 'calendar-date-compare #[(date1 date2) "└    @!└\n@!Wç" [calendar-absolute-from-gregorian date1 date2] 3 "\
  908. Returns t if DATE1 is before DATE2, nil otherwise.
  909. The actual dates are in the car of DATE1 and DATE2."])
  910. (fset 'calendar-date-string #[(date &optional abbreviate nodayname) "½â┴¬Ä\n½ê├ !┼╞O¬â├ !╚ !    \n½ë╩    !┼╞O¬ä╩    ! ╠═ !!╠    !    ╠╧ !!╤╥┴#.ç" [nodayname "" abbreviate calendar-day-name date 0 3 dayname extract-calendar-month month calendar-month-name monthname int-to-string extract-calendar-day day extract-calendar-year year mapconcat eval calendar-date-display-form] 4 "\
  911. A string form of DATE, driven by the variable `calendar-date-display-form'.
  912. An optional parameter ABBREVIATE, when t, causes the month and day names to be
  913. abbreviated to three characters.  An optional parameter NODAYNAME, when t,
  914. omits the name of the day of the week."])
  915. (fset 'calendar-dayname-on-or-before #[(dayname date) "ë    Z┬ªZç" [date dayname 7] 3 "\
  916. Returns the absolute date of the DAYNAME on or before absolute DATE.
  917. DAYNAME=0 means Sunday, DAYNAME=1 means Monday, and so on.
  918.  
  919. Note: Applying this function to d+6 gives us the DAYNAME on or after an
  920. absolute day d.  Similarly, applying it to d+3 gives the DAYNAME nearest to
  921. absolute date d, applying it to d-1 gives the DAYNAME previous to absolute
  922. date d, and applying it to d+7 gives the DAYNAME following absolute date d."])
  923. (fset 'calendar-nth-named-day #[(n dayname month year) "└    ┬V½Æ├ ┼╟E!\"    S╟_\\¬ò├ ┼╔\"E!\"    T╟_\\!ç" [calendar-gregorian-from-absolute n 0 calendar-dayname-on-or-before dayname calendar-absolute-from-gregorian month 7 year calendar-last-day-of-month] 8 "\
  924. Returns the date of the  Nth DAYNAME in MONTH, YEAR.
  925. A DAYNAME of 0 means Sunday, 1 means Monday, and so on.  If N<0, the
  926. date returned is the Nth DAYNAME from the end of MONTH, YEAR (that is, -1 is
  927. the last DAYNAME, -2 is the penultimate DAYNAME, and so on."])
  928. (fset 'cursor-to-calendar-day-of-year #[nil "└ «â┴┬!─ !╞ !╞╚╔E!Z\n╦╠\në═U½â╬¬ü╧%,ç" [calendar-cursor-to-date error "Cursor is not on a date!" date extract-calendar-year year calendar-day-number day 12 31 days-remaining message "Day %d of %d; %d day%s remaining in the year" 1 "" "s"] 7 "\
  929. Show the day number in the year and the number of days remaining in the
  930. year for the date under the cursor." nil])
  931. (fset 'calendar-absolute-from-iso #[(date) "└    !├    !┼    !╟╚╔╚ëE!╩\\\"\nS╦_ ╠U½â═¬é S\\\\+ç" [extract-calendar-month date week extract-calendar-day day extract-calendar-year year calendar-dayname-on-or-before 1 calendar-absolute-from-gregorian 3 7 0 6] 6 "\
  932. The number of days elapsed between the Gregorian date 12/31/1 BC and
  933. DATE.  The `ISO year' corresponds approximately to the Gregorian year, but
  934. weeks start on Monday and end on Sunday.  The first week of the ISO year is
  935. the first such week in which at least 4 days are in a year.  The ISO
  936. commercial DATE has the form (week day year) in which week is in the range
  937. 1..52 and day is in the range 0..6 (1 = Monday, 2 = Tuesday, ..., 0 =
  938. Sunday).  The The Gregorian date Sunday, December 31, 1 BC is imaginary."])
  939. (fset 'calendar-iso-from-absolute #[(date) "└┴\n├Z!!ëë┼\n╚╔ëTE!Y½ì╔\\T¬g*\\\n\n╚╔ë\nE!Z╦ÑT\n╦ª\nE*ç" [extract-calendar-year calendar-gregorian-from-absolute date 3 approx 0 sum y calendar-absolute-from-iso 1 year 7] 7 "\
  940. Compute the `ISO commercial date' corresponding to the absolute DATE.
  941. The ISO year corresponds approximately to the Gregorian year, but weeks
  942. start on Monday and end on Sunday.  The first week of the ISO year is the
  943. first such week in which at least 4 days are in a year.  The ISO commercial
  944. date has the form (week day year) in which week is in the range 1..52 and
  945. day is in the range 0..6 (1 = Monday, 2 = Tuesday, ..., 0 = Sunday).  The
  946. absolute date is the number of days elapsed since the (imaginary) Gregorian
  947. date Sunday, December 31, 1 BC."])
  948. (fset 'cursor-to-iso-calendar-date #[nil "└ «â┴┬!─ !┼ª╟─ !!╔╩╦U½â┼¬é╠!═!$+ç" [calendar-cursor-to-date error "Cursor is not on a date!" greg-date calendar-absolute-from-gregorian 7 day calendar-iso-from-absolute iso-date message "ISO date: Day %s of week %d of %d." 0 extract-calendar-month extract-calendar-year] 6 "\
  949. Show the equivalent date on the `ISO commercial calendar' for the date
  950. under the cursor." nil])
  951. (fset 'calendar-julian-from-absolute #[(date) "┴\\┬Ñëë─╟╚ëTE!Y½ï╚\\T¬i*\\    ╚─\n╟\në┴U½ï    ╦ª─U½â╠¬à═\nSH    E!V½ï╚\\\nT\n¬U*T╟╚    E!SZ    E,ç" [date 2 366 approx 0 sum y calendar-absolute-from-julian 1 year m 4 29 [31 28 31 30 31 30 31 31 30 31 30 31] month day] 7 "\
  952. Compute the Julian (month day year) corresponding to the absolute DATE.
  953. The absolute date is the number of days elapsed since the (imaginary)
  954. Gregorian date Sunday, December 31, 1 BC."])
  955. (fset 'calendar-absolute-from-julian #[(date) "└    !┬    !├    !╟    ! ╚ª╔U½É ╩ª╔U¼ë╦V½â╠¬ü╔ S═_ S╬Ñ╧\\\\\\\\+ç" [extract-calendar-month date extract-calendar-day extract-calendar-year year day month calendar-day-number 100 0 400 2 1 365 4 -2] 5 "\
  956. The number of days elapsed between the Gregorian date 12/31/1 BC and DATE.
  957. The Gregorian date Sunday, December 31, 1 BC is imaginary."])
  958. (fset 'cursor-to-julian-calendar-date #[nil "½â┴¬ü┬─┼╞╟╚╔ «â╩╦!!!!\")ç" [european-calendar-style (day " " monthname " " year) (monthname " " day ", " year) calendar-date-display-form message "Julian date: %s" calendar-date-string calendar-julian-from-absolute calendar-absolute-from-gregorian calendar-cursor-to-date error "Cursor is not on a date!"] 7 "\
  959. Show the Julian calendar equivalent of the date under the cursor." nil])
  960. (fset 'islamic-calendar-leap-year-p #[(year) "┴ª┬├─┼╞╟╚╔╩╦╠» >ç" [year 30 2 5 7 10 13 16 18 21 24 26 29] 12 "\
  961. Returns t if YEAR is a leap year on the Islamic calendar."])
  962. (fset 'islamic-calendar-last-day-of-month #[(month year) "┴┬├─┼╞»>½é╟ç╚╔╩╦╠»>½é═ç╬!½é╟ç═ç" [month 1 3 5 7 9 11 30 2 4 6 8 10 29 islamic-calendar-leap-year-p year] 7 "\
  963. The last day in MONTH during YEAR on the Islamic calendar."])
  964. (fset 'islamic-calendar-day-number #[(date) "└    !├    !\n┼Ñ╞_\nS┼Ñ╟_ \\\\*ç" [extract-calendar-month date month extract-calendar-day day 2 30 29] 3 "\
  965. Return the day number within the year of the Islamic date DATE."])
  966. (fset 'calendar-absolute-from-islamic #[(date) "└    !├    !┼    !ë╟ªë╔W½â╩¬╥╦W½â╠¬╔═W½â╬¬└╧W½â╔¬╖╨W½â╤¬«╥W½â╙¬Ñ╘W½â╦¬£╒W½â╓¬ô╫W½â═¬è╪W½â┘¬ü┌▄    !S▌_╟Ñ╧_▐\\\\\\\\-ç" [extract-calendar-month date month extract-calendar-day day extract-calendar-year year 30 y 3 0 6 1 8 2 11 14 4 17 5 19 22 7 25 27 9 10 leap-years-in-cycle islamic-calendar-day-number 354 227014] 6 "\
  967. Absolute date of Islamic DATE.
  968. The absolute date is the number of days elapsed since the (imaginary)
  969. Gregorian date Sunday, December 31, 1 BC."])
  970. (fset 'calendar-islamic-from-absolute #[(date) "┴W½à┬ëëEç├Z─Ñëë┬╚╔ëTE!Y½ì╔\\T¬g*\\\n╔┬ ╚ ╠ \n\"\nE!V½ì╔\\ T ¬b*T╚╔\nE!SZ\nE,ç" [date 227015 0 227014 355 approx sum y calendar-absolute-from-islamic 1 year m islamic-calendar-last-day-of-month month day] 7 "\
  971. Compute the Islamic date (month day year) corresponding to absolute DATE.
  972. The absolute date is the number of days elapsed since the (imaginary)
  973. Gregorian date Sunday, December 31, 1 BC."])
  974. (byte-code "└┬ç" [["Muharram" "Safar" "Rabi I" "Rabi II" "Jumada I" "Jumada II" "Rajab" "Sha'ban" "Ramadan" "Shawwal" "Dhu al-Qada" "Dhu al-Hijjah"] calendar-islamic-month-name-array nil] 1)
  975. (fset 'cursor-to-islamic-calendar-date #[nil "½â┴¬ü┬ ─┼╞ «â╟╚!!!    \n ╠    !═W½à╬╧!¬ë╬╨╤    ╥╙#\"+ç" [european-calendar-style (day " " monthname " " year) (monthname " " day ", " year) calendar-islamic-month-name-array calendar-islamic-from-absolute calendar-absolute-from-gregorian calendar-cursor-to-date error "Cursor is not on a date!" islamic-date calendar-month-name-array calendar-date-display-form extract-calendar-year 1 message "Date is pre-Islamic" "Islamic date: %s" calendar-date-string nil t] 6 "\
  976. Show the Islamic calendar equivalent of the date under the cursor." nil])
  977. (fset 'calendar-hebrew-from-absolute #[(date) "└    !├─\n!SH╞╚\n!╔\\\n    ╦╠═\nTE!Y½ç\nT\n¬m╬\n!    ╦╨\n\"\nE!V½êªT¬i)    ╦═\nE!ZT\nE,ç" [calendar-gregorian-from-absolute date greg-date [9 10 11 12 1 2 3 4 7 7 7 8] extract-calendar-month month nil day extract-calendar-year 3760 year calendar-absolute-from-hebrew 7 1 hebrew-calendar-last-month-of-year length hebrew-calendar-last-day-of-month] 6 "\
  978. Compute the Hebrew date (month day year) corresponding to absolute DATE.
  979. The absolute date is the number of days elapsed since the (imaginary)
  980. Gregorian date Sunday, December 31, 1 BC."])
  981. (fset 'hebrew-calendar-leap-year-p #[(year) "┴_T┬ª┴Wç" [year 7 19] 2 "\
  982. t if YEAR is a Hebrew calendar leap year."])
  983. (fset 'hebrew-calendar-last-month-of-year #[(year) "└    !½é┬ç├ç" [hebrew-calendar-leap-year-p year 13 12] 2 "\
  984. The last month of the Hebrew calendar YEAR."])
  985. (fset 'hebrew-calendar-last-day-of-month #[(month year) "┴┬├─┼»>¼í╞U½å╟!½û╔U½å╩!½ï╦U½ê╠!½é═ç╬ç" [month 2 4 6 10 13 12 hebrew-calendar-leap-year-p year 8 hebrew-calendar-long-heshvan-p 9 hebrew-calendar-short-kislev-p 29 30] 6 "\
  986. The last day of MONTH in YEAR."])
  987. (fset 'hebrew-calendar-elapsed-days #[(year) "S┴Ñ┬_S┴ª├_S┴ª─_T┴Ñ\\\\ë╞ª╟_╚\\    ├_╞Ñ╟_    ╞Ñ╩\\\\\\ë ╠ª╞_    ╞ª\\╬_ ╠Ñ╧\\\\╤Y¼º─ª╥U½ï╙Y½à╘!½ö─ª╧U½æ╒Y½ï╘S!½àT¬éë─ª╫╪╩E>½àT¬é.ç" [year 19 235 12 7 months-elapsed 1080 793 204 parts-elapsed 5 hours-elapsed 24 parts 29 1 day 19440 2 9924 hebrew-calendar-leap-year-p 16789 alternative-day 0 3] 5 "\
  988. Number of days elapsed from the Sunday prior to the start of the Hebrew
  989. calendar to the mean conjunction of Tishri of Hebrew YEAR."])
  990. (fset 'hebrew-calendar-days-in-year #[(year) "└    T!└    !Zç" [hebrew-calendar-elapsed-days year] 3 "\
  991. Number of days in Hebrew YEAR."])
  992. (fset 'hebrew-calendar-long-heshvan-p #[(year) "└    !┬ª├Uç" [hebrew-calendar-days-in-year year 10 5] 2 "\
  993. t if Heshvan is long in Hebrew YEAR."])
  994. (fset 'hebrew-calendar-short-kislev-p #[(year) "└    !┬ª├Uç" [hebrew-calendar-days-in-year year 10 3] 2 "\
  995. t if Kislev is short in Hebrew YEAR."])
  996. (fset 'calendar-absolute-from-hebrew #[(date) "└    !├    !┼    ! \n╟W½╚╟╚    ë\n╦!X½ô    ╠\n\"\\    \nTë\n¬f    *═╚    ë\n\nW½ô    ╠\n\"\\    \nTë\n¬i    *\\¬í╟╚    ë\n\nW½ô    ╠\n\"\\    \nTë\n¬i    *╬!╧\\\\\\+ç" [extract-calendar-month date month extract-calendar-day day extract-calendar-year year 7 0 sum m hebrew-calendar-last-month-of-year hebrew-calendar-last-day-of-month 1 hebrew-calendar-elapsed-days -1373429] 7 "\
  997. Absolute date of Hebrew DATE.
  998. The absolute date is the number of days elapsed since the (imaginary)
  999. Gregorian date Sunday, December 31, 1 BC."])
  1000. (byte-code "└┬─ç" [["Nisan" "Iyar" "Sivan" "Tammuz" "Av" "Elul" "Tishri" "Heshvan" "Kislev" "Teveth" "Shevat" "Adar"] calendar-hebrew-month-name-array-common-year ["Nisan" "Iyar" "Sivan" "Tammuz" "Av" "Elul" "Tishri" "Heshvan" "Kislev" "Teveth" "Shevat" "Adar I" "Adar II"] calendar-hebrew-month-name-array-leap-year nil] 1)
  1001. (fset 'cursor-to-hebrew-calendar-date #[nil "½â┴¬ü┬─┼╞ «â╟╚!!!    ╩╦    !!½ä ¬é╧╨╤    ╥╙#\"+ç" [european-calendar-style (day " " monthname " " year) (monthname " " day ", " year) calendar-date-display-form calendar-hebrew-from-absolute calendar-absolute-from-gregorian calendar-cursor-to-date error "Cursor is not on a date!" hebrew-date hebrew-calendar-leap-year-p extract-calendar-year calendar-hebrew-month-name-array-leap-year calendar-hebrew-month-name-array-common-year calendar-month-name-array message "Hebrew date: %s" calendar-date-string nil t] 6 "\
  1002. Show the Hebrew calendar equivalent of the date under the cursor." nil])
  1003. (fset 'french-calendar-leap-year-p #[(year) "┴>«ƒ┬>«Ü├V¡ò─ª┼U¡Ä╞ª╟>?¡å╚ª┼U?ç" [year (3 7 11) (15 20) 20 4 0 400 (100 200 300) 4000] 2 "\
  1004. True if YEAR is a leap year on the French Revolutionary calendar.
  1005. For Gregorian years 1793 to 1805, the years of actual operation of the
  1006. calendar, uses historical practice based on equinoxes is followed (years 3, 7,
  1007. and 11 were leap years; 15 and 20 would have been leap years).  For later
  1008. years uses the proposed rule of Romme (never adopted)--leap years fall every
  1009. four years except century years not divisible 400 and century years that are
  1010. multiples of 4000."])
  1011. (fset 'french-calendar-last-day-of-month #[(month year) "┴W½é┬ç├ !½é┼ç╞ç" [month 13 30 french-calendar-leap-year-p year 6 5] 2 "\
  1012. Last day of MONTH, YEAR on the French Revolutionary calendar.
  1013. The 13th month is not really a month, but the 5 (6 in leap years) day period of
  1014. `sansculottides' at the end of the year."])
  1015. (fset 'calendar-absolute-from-french #[(date) "└    !┬    !├    ! S╟_ ╚W½à ╔Ѭò S╔Ñ S╩Ñ[ S╦Ñ S╠Ñ[\\\\\\S═_╬\\\\\\\\+ç" [extract-calendar-month date extract-calendar-day extract-calendar-year year day month 365 20 4 100 400 4000 30 654414] 6 "\
  1016. Absolute date of French Revolutionary DATE.
  1017. The absolute date is the number of days elapsed since the (imaginary)
  1018. Gregorian date Sunday, December 31, 1 BC."])
  1019. (fset 'calendar-french-from-absolute #[(date) "┴W½à┬ëëEç├Z─Ñëë┬╚╔ëTE!Y½ì╔\\T¬g*\\\n╔┬ ╚ ╠ \n\"\nE!V½ì╔\\ T ¬b*T╚╔\nE!SZ\nE,ç" [date 654415 0 654414 366 approx sum y calendar-absolute-from-french 1 year m french-calendar-last-day-of-month month day] 7 "\
  1020. Compute the French Revolutionary date (month day year) corresponding to
  1021. absolute DATE.  The absolute date is the number of days elapsed since the
  1022. (imaginary) Gregorian date Sunday, December 31, 1 BC."])
  1023. (fset 'cursor-to-french-calendar-date #[nil "└┴┬ «â├─!!!╞!╚!    ╩! ╠W½à═╬!¬»    ╧U½ì═╨ SH#¬£═╥╙ S╘ÑT╒\" S╘ªH    SH%,ç" [calendar-french-from-absolute calendar-absolute-from-gregorian calendar-cursor-to-date error "Cursor is not on a date!" french-date extract-calendar-year y extract-calendar-month m extract-calendar-day d 1 message "Date is pre-French Revolution" 13 "Jour %s de l'Annee %d de la Revolution" french-calendar-special-days-array "Decade %s, %s de %s de l'Annee %d de la Revolution" make-string 10 73 french-calendar-day-name-array french-calendar-month-name-array] 6 "\
  1024. Show the French Revolutionary calendar equivalent of the date under the
  1025. cursor." nil])
  1026. (byte-code "└┬─╞ç" [["Vendemiaire" "Brumaire" "Frimaire" "Nivose" "Pluviose" "Ventose" "Germinal" "Floreal" "Prairial" "Messidor" "Thermidor" "Fructidor"] french-calendar-month-name-array ["Primidi" "Duodi" "Tridi" "Quartidi" "Quintidi" "Sextidi" "Septidi" "Octidi" "Nonidi" "Decadi"] french-calendar-day-name-array ["de la Vertu" "du Genie" "du Labour" "de la Raison" "de la Recompense" "de la Revolution"] french-calendar-special-days-array nil] 1)
  1027.